package com.ruoyi.merchant.service.impl;

import com.ruoyi.merchant.domain.CityInfo;
import com.ruoyi.merchant.domain.ProvinceInfo;
import com.ruoyi.merchant.mapper.CityInfoMapper;
import com.ruoyi.merchant.mapper.ProvinceInfoMapper;
import com.ruoyi.merchant.service.CityInfoService;
import com.ruoyi.merchant.service.ProinceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityInfoServiceImpl implements CityInfoService {

    @Autowired
    private CityInfoMapper cityInfoMapper;

    @Override
    public List<CityInfo> list(Integer provinceId) {
        return cityInfoMapper.selectAllCitysByProinceId(provinceId);
    }
}
